package com.example.demo.entity.exception;

/**
 * @description:
 * @author: cj
 * @create: 10-03-11 10:55:06
 */
public class EnumException extends RuntimeException {
    public EnumResult enumResult;

    public EnumException() {

    }

    public EnumException(String msg) {
        this.enumResult.setCode( 500 );
        this.enumResult.setMsg( msg );
    }

    public EnumException(EnumResult enumResult) {
        this.enumResult = enumResult;
    }
}
